use ClientPlatform
db.Portfolio.find().forEach(function(portfolio){
    
   portfolio.AccountIds=new Array(portfolio.AccountId);
   delete portfolio.AccountId;
   db.Portfolio.save(portfolio);
    
    })